using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Web;
using System.Web.Mvc;
using System.Web.Script.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

namespace WebOS.Controllers
{
    [HandleError]
    public class HomeController : Controller
    {
        public ActionResult Index()
        {


            return View();
        }


        public ActionResult Load()
        {


            return Json(new
                            {
                                App = new[]
                                          {
                                              new
                                                  {
                                                      AppId = "D001",
                                                      AppName = "即时通讯",
                                                      Icon = "http://online.sccnn.com/icon/1118/01.png",

                                                  },
                                              new
                                                  {
                                                      AppId = "D002",
                                                      AppName = "文件",
                                                      Icon = "http://online.sccnn.com/icon/1118/05.png",

                                                  },
                                              new
                                                  {
                                                      AppId = "D003",
                                                      AppName = "图片",
                                                      Icon = "http://online.sccnn.com/icon/1118/02.png",

                                                  },
                                              new
                                                  {
                                                      AppId = "D004",
                                                      AppName = "芊芊音乐",
                                                      Icon = "http://online.sccnn.com/icon/1118/03.png",

                                                  },
                                          }
                            }, JsonRequestBehavior.AllowGet);
        } 
      
    } 
}
